<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/share/taglib.jsp" %>
<%  String path = request.getContextPath();%>
<html>
<head>
     <title>修改密码</title>
	 <LINK href="<%=path%>/style/admin.css" type="text/css" rel="stylesheet">   
	 <script type="text/javascript" src="<%=path%>/script/jquery-1.3.2.min.js"></script>
	 
	  
</head>

<body>
	<s:form action="updatepassword_userPass" namespace="/adminmanager" id="usersaddui" method="post" onsubmit="">
		<div class="center">
		<div class="page container">
			
			<div class="span-18 last">
			 <c:if test="${message == '修改成功'}"><font color="green">修改成功！</font></c:if>
			 <c:if test="${message != '修改成功'}"><font color="red"><c:out value="${message}" escapeXml="false"/></font></c:if>
			
			<table>
				<tr>
					<td class="span-3 rt"><dfn>*</dfn>当前密码:</td>
					
					<td><s:password  name="olduserpass" id="olduserpass" cssClass="text5"/></td>
				</tr>
				<tr>
					<td class="span-3 rt"><dfn>*</dfn>新密码:</td>
					<td><s:password name="newuserpass" id="newuserpass" cssClass="text5"/></td>
				</tr>
				<tr>
					<td class="span-3 rt"><dfn>*</dfn>确认新密码:</td>
					<td><s:password name="confirmnewpass" id="confirmnewpass" cssClass="text5" /></td>
				</tr>
				<!-- 
				<tr>
					<td class="span-3 rt">操作人员:</td>
					<td><s:textfield name="" cssClass="text5"/></td>
				</tr>
				 -->
				</table>
				<h2></h2>
			<div class="clear">
			<input type="submit" name="Submit" value="保存" tabindex="8" class="reg_btn blue_link" />
			<input type="button" name="back" value="返回" tabindex="8" class="reg_btn blue_link"
			onclick="javascript:history.go(-1);" />
			
			</div>
			
		</div>	</div>
	</div>
	</s:form>

	 <script type="text/javascript" src="<%=path%>/script/jquery.validate-1.3.2.js"></script>
	 <script type="text/javascript" src="<%=path%>/script/jquery.validate.person.js"></script>
	 <script type="text/javascript" src="<%=path%>/script/jquery.validate.message_cn.js"></script>
<script type="text/javascript">
	$ (document).ready (function() {
		    $ ("#usersaddui").validate ({
		        rules: {
		            
		            'olduserpass': {
		    			required:true,
		    			maxlength:20
		            },
		            'newuserpass':{
		                required:true,
		                maxlength:20
		            },
		            'confirmnewpass': {
		                required:true,
						equalTo: "#newuserpass",
		                maxlength:20
		            }
		        }
		    });
			$("#olduserpass").val("");
			$("#newuserpass").val("");
			$("#confirmnewpass").val("");

		});
</script>
</body>
</html>

